package TestConcurrent;

import java.util.concurrent.locks.ReentrantLock;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 张杰
 * Date: 2022-04-17
 * Time: 11:36
 */
public class DemoReentrantLock {
    public static void main(String[] args) {
        ReentrantLock locker = new ReentrantLock();
        //加锁
        locker.lock();
        //解锁
        locker.unlock();
    }
}
